<div class="layuimini-container">
    <div style="margin-left:50px;color:red">一次最大创建数量为500</div>
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label required">用户名前缀:</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="text" name="prefix" class="layui-input" lay-verify="required" lay-reqtext="请输入用户名前缀" placeholder="请输入用户名前缀" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">用户名后缀（开始数字）:</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="number" name="startsuffix" class="layui-input" lay-verify="required" lay-reqtext="请输入用户名后缀（开始数字）" placeholder="请输入用户名后缀（开始数字）" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">用户名后缀（结束数字）:</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="number" name="endsuffix" class="layui-input" lay-verify="required" lay-reqtext="请输入用户名后缀（结束数字）" placeholder="请输入用户名后缀（结束数字）" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">密码:</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="text" name="password" class="layui-input"  lay-reqtext="请输入密码" placeholder="请输入密码" value="">
                <tip>为空时，密码默认为123456</tip>
            </div>
        </div>
        {if session("admin.group") == 1 || session("admin.group") == 5}
        <div class="layui-form-item" id="rooms">
            <label class="layui-form-label">房间号</label>
            <div class="layui-input-block">
                <select name="rooms">
                    {foreach $rooms as $vo}
                        <option value="{$vo.roomid}" >{$vo.roomid}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {/if}

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>